package com.gitee.leijin.rbac.enums;

import lombok.Getter;

@Getter
public enum CodeEnum {

    SUCCESS(20, "成功"),
    PROCESS(10, "处理中"),
    FAIL(40, "失败"),
    /**
     * 客户端错误
     */
    PARAM_ERR(40101, "参数不正确"),
    AUTH_ERR(40201, "权限不足"),

    SYS_ERR(900001, "系统错误"),

    ;
    private final Integer code;
    private final String message;

    CodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
